//
//  BaseTableViewController.h
//  cityStar
//
//  Created by wangjia on 15/3/28.
//  Copyright (c) 2015年 tiny. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Define.h"
#import "SVHTTPClient.h"
#import "SVProgressHUD.h"
#import "HttpRequestManager.h"
#import "UIView+Positioning.h"
#import "KInterFace.h"
#import "PersonalDetail.h"

@interface BaseTableViewController : UITableViewController
@property(nonatomic,copy) void (^leftBarActionBlock)(void);
@property(nonatomic,copy) void (^rightBarActionBlock)(void);

#pragma mark -数据相关
/**
 *  当前的 User
 *
 */
- (PersonalDetail *)currentUser;
- (void)changeCurrentUser:(PersonalDetail *)currentUser;

/**
 *  更改当前用户选择的University
 *
 *  @param university
 */

#pragma mark -导航栏相关
//导航栏相关,注:只有在导航栏左或右边有且仅有一个的时候，才能使用。
- (void)addBackButton;
- (void)addLeftButtonWithImage:(UIImage *)image actionBlock:(void(^)(void))block;
- (void)addLeftButtonWithTitle:(NSString *)title actionBlock:(void(^)(void))block;
- (void)addRightButtonWithImage:(UIImage *)image actionBlock:(void(^)(void))block;
- (void)addRightButtonWithTitle:(NSString *)title actionBlock:(void(^)(void))block;

//需要重载
- (void)setUpNavgationBar;
-(void)setNavigationColor:(UIColor *)color;
- (void)rightBar_Touched:(id)sender;
@end
